home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doodle_d.swf / scripts / frame_105 / DoAction_4.as < prev    next >
Text File  |  2013-04-24  |  675b  |  29 lines

  1. function spawn()
  2. {
  3.    if(eNumb < 3)
  4.    {
  5.       eAmount++;
  6.       eNumb++;
  7.       depth = _root.getNextHighestDepth();
  8.       _root.attachMovie("en16","e" + eNumb,depth);
  9.       e = eval("e" + eNumb);
  10.       e._x = Math.random() * 600 + 20;
  11.       e._y = Math.random() * 40 + 640;
  12.       e.che = eAmount;
  13.    }
  14.    if(eNumb2 < 3)
  15.    {
  16.       eAmount++;
  17.       eNumb2++;
  18.       depth = _root.getNextHighestDepth();
  19.       _root.attachMovie("en17","e" + (eNumb2 + 3),depth);
  20.       e = eval("e" + (eNumb2 + 3));
  21.       e._x = Math.random() * 640;
  22.       e._y = 640 + Math.random() * 100;
  23.       e.che = eAmount;
  24.    }
  25. }
  26. var eNumb = 0;
  27. var eNumb2 = 0;
  28. var eAmount = 0;
  29.